package utils

func ResponseSuccess(info string) *Response {
	return &Response{Code: 0, Desc: info}
}

func ResponseError(info string) *Response {
	return &Response{Code: 1, Desc: info}
}

type Response struct {
	Code int8   `json:"code"`
	Desc string `json:"desc"`
	Data interface{} `json:"data"`
}
